package com.example.blog.dao;

import com.example.blog.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * name: 东北宋小宝
 * date: 2020/9/2
 */
@Mapper
public interface CommentMapper {
    List<Comment> findAll(Map<String, Object> map);
    List<Comment> findReplyComments(Map<String, Object> map);
    Comment getCommentById(Long id);
    void saveComment(Comment comment);

    void deleteComment(Long id);
}
